package com.group4.xiao_ge_lai_yi_zhu.factory;

import com.group4.xiao_ge_lai_yi_zhu.controller.change_prize_controller.JiShiQi;
import com.group4.xiao_ge_lai_yi_zhu.domain.Lottery;

import java.time.LocalDateTime;

/**
 * 彩票类的工厂类
 * 1.创建彩票对象
 * 2.收集除了号码之外的数据
 */
public class LotteryFactory {
    public static int i = 0;

    public static Lottery getLottery(String lotteryNum, String serial) {
        //TODO
        //收集除了彩票号码的数据
        //先用假数据了,之后改
        //票上内容:1.序号 2.总期数 3.开奖时间  4.选中号码 6+1 5.出票时间
        return new Lottery(serial, 2021000+i, JiShiQi.date, lotteryNum, LocalDateTime.now());
    }
}
